package com.vogue.supplymall.shop.common;

/**
 * @aouthor: zhangliang
 * @date: Create in 2017-12-29
 */
public enum OrderEnum {
    /**
     * 排序的key 1：销量 2：价格 3：名称 4：评价
     */
    sales(1," sales ")
    ,price(2," public_price ")
    ,sname(3," name ")
    ,evaluation(4," evaluation ")
    /**
     * 排序顺序 1：由低到高 asc 2：由高到低 desc
     */
    ,ASC(1," ASC ")
    ,DESC(2," DESC ")
    ;


    private int code;
    private String name;

    OrderEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
